from apiCenter.src.model.dao.DbUser import DbUser


class MdUser:
    id = ''
    account = ''
    nick = ''
    email = ''
    password = ''
    identity = ''

    @staticmethod
    def get_user(id=None, account=None, **kwargs):
        if id:
            user = DbUser().get(DbUser.id == id)
        elif account:
            user = DbUser().get(DbUser.account == account)
        else:
            # user = DbUser().get()
            for i in kwargs:
                print(str(kwargs[i]) + str(i))

    @staticmethod
    def set_new_user(**kwargs):
        print(1)


MdUser.get_user({'test': 0, 'qq': 1})
